class Image < ActiveRecord::Base
  belongs_to :record, :polymorphic=>true
  has_attachment :content_type=>:image, 
                    :storage=>:file_system, 
                    :path_prefix=>'public/records',
                     :max_size => 1.megabytes,
                     :min_size => 1,
                     :resize_to => '240>',
                     :thumbnails => { :thumbnail    => '72>',
                                      :icon         => '36>',
                                      :bounded_icon => '36x36>' }
  validates_as_attachment
end
